package com.xmut.entity;

import com.sirdc.modules.core.entity.LongEntity;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 楼栋表
 */
@Entity
@Table(name = "t_floor",uniqueConstraints = @UniqueConstraint(columnNames ={ "buildingUnit","buildingNumber"}))
public class Floor extends LongEntity {

    private static final long serialVersionUID = 2760418425209597049L;

    private String buildingUnit;//单元
    private String buildingNumber;//门牌号

    public String getBuildingUnit() {
        return buildingUnit;
    }

    public void setBuildingUnit(String buildingUnit) {
        this.buildingUnit = buildingUnit;
    }

    public String getBuildingNumber() {
        return buildingNumber;
    }

    public void setBuildingNumber(String buildingNumber) {
        this.buildingNumber = buildingNumber;
    }
}
